using System.Runtime.InteropServices;

namespace FrontDisplay.NativeMethods
{
    [StructLayout(LayoutKind.Sequential)]
    public struct Point
    {
        public int X, Y;

        public Point(int x, int y)
        {
            X = x;
            Y = y;
        }

        public Point(Point copy)
        {
            X = copy.X;
            Y = copy.Y;
        }

        public static Point FromPoint(System.Drawing.Point point)
        {
            return new Point(point.X, point.Y);
        }

        public System.Drawing.Point ToPoint()
        {
            return new System.Drawing.Point(X, Y);
        }

        public override string ToString()
        {
            return "{" + X + "," + Y + "}";
        }
    }
}